<?php if ((!isset($canDelete) || $canDelete == true) && $session->read('Auth.User.read_only') == false) {
    if (!isset($params)) {
        if (!isset($model)) {
            $model = Inflector::classify($this->name);
        }
        $params = $this->data[$model]['id'];
    }
    if (!isset($controller)) $controller = Inflector::underscore($this->name);
    if (!isset($action)) $action = 'delete';
    if (!isset($title)) {
        $title = '';
    } else {
        $title = '<br />\"' . $this->data[$model][$title] . '\"';
    }
    echo $my->confirmLink('Delete', "{$controller}/{$action}/{$params}", "Do you want to delete {$title}?", $update, false, array('class' => 'button delete'));
}?>